package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type GuildManager struct {
	Id            int       `json:"id" gorm:"primaryKey;autoIncrement"`
	GuildId       int       `json:"guild_id"`
	ParentId      int       `json:"parent_id"`
	PathIds       string    `json:"path_ids"`
	Mobile        string    `json:"mobile"`
	Password      string    `json:"password"`
	RealName      string    `json:"real_name"`
	Token         string    `json:"token"`
	RoleId        int       `json:"role_id"`
	SharingRatio  int       `json:"sharing_ratio"`
	Diamond       int       `json:"diamond"`
	TotalDiamond  int       `json:"total_diamond"`
	CreateTime    time.Time `json:"create_time"`
	LastLoginTime time.Time `json:"last_login_time"`
	LastLoginIp   string    `json:"last_login_ip"`
	Status        int       `json:"status"`
}

func (GuildManager) TableName() string {
	return fmt.Sprintf("%sguild_manager", models.Prefix)
}
